import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

/**
 * @author wangze
 * @date 2021-03-15 8:55.
 **/
public class WexinUrlEncoder {

	private final  static  String CORPID="ww4a9b8a88e2d6877b";

	public static void main(String[] args) throws UnsupportedEncodingException {
		String redirect= URLEncoder.encode("https://sjpt.czdqyy.com:5002/phone/overview","UTF-8");

		String url="https://open.weixin.qq.com/connect/oauth2/authorize" +
				"?appid="+CORPID+
				"&redirect_uri="+redirect+
				"&response_type=code" +
				"&scope=snsapi_base" +
				"&state=STATE#wechat_redirect";
		System.out.println(url);

		String a="123";
		String b="123";
		String c=new String("123");
		String d="12";
		String f=d+"3";
		System.out.println(a==f);
	}

}
